<?php 

/**
 * 输出
 * @author seyo
 *
 */
class output
{
	public function json_exit($rs, $data = '', $msg = '')
	{
		$arr = array(
					'result' => $rs ? 'ok' : 'error',
					'data' => $data,
					'msg' => $msg
				);
		exit(json_encode($arr));
	}
}